using System;
using System.Collections;
using System.Text;

using Qiang.Topology.Geometries;
using Qiang.Topology.Planargraph;

namespace Qiang.Topology.Operation.Linemerge
{
    /// <summary>
    /// An edge of a {LineMergeGraph}. The <c>marked</c> field indicates
    /// whether this Edge has been logically deleted from the graph.
    /// </summary>
    public class LineMergeEdge : Edge 
    {
        private LineString line;

       /// <summary>
       /// Constructs a LineMergeEdge with vertices given by the specified LineString.
       /// </summary>
       /// <param name="line"></param>
        public LineMergeEdge(LineString line)
        {
            this.line = line;
        }

        /// <summary>
        /// Returns the LineString specifying the vertices of this edge.
        /// </summary>
        public virtual LineString Line 
        {
            get
            {
                return line;
            }
        }
    }
}
